import request from "@/utils/request";
// 通知-修改已读状态
export function changeReadStatus(id) {
  return request({
    url: "/school/system/notice/changeReadStatus/" + id,
    method: "post",
  });
}

// 一键清除
export function clearUnread(courseSchedulingld) {
  return request({
    url: `/school/system/message/clearUnread/${courseSchedulingld}`,
    method: "put",
  });
}
// 消息列表
export function listPost_message(data) {
  return request({
    url: "/school/system/message/myMessageList",
    method: "get",
    params: data,
  });
}
// 消息已读
export function updatePost_readmessage(postId) {
  return request({
    url: "/school/teacher/message/read/" + postId,
    method: "put",
  });
}
// 消息列表---新
export function getMyMessageList(data) {
  return request({
    url: "/school/system/message/myMessageListNew",
    method: "get",
    params: data,
  });
}
// 课堂消息-批改
export function getClassroomMessage(data) {
  return request({
    url: "/school/system/message/classroomMessage",
    method: "get",
    params: data,
  });
}
// 课堂消息-批改
export function myMessageCourseList(data) {
  return request({
    url: "/school/system/message/myMessageCourseList",
    method: "get",
    params: data,
  });
}

